import request from '@/utils/request'

// 查询订单购物详情列表
export function listStoreOrderInfo(query) {
  return request({
    url: '/system/storeOrderInfo/list',
    method: 'get',
    params: query
  })
}

// 查询订单购物详情详细
export function getStoreOrderInfo(id) {
  return request({
    url: '/system/storeOrderInfo/' + id,
    method: 'get'
  })
}

// 新增订单购物详情
export function addStoreOrderInfo(data) {
  return request({
    url: '/system/storeOrderInfo',
    method: 'post',
    data: data
  })
}

// 修改订单购物详情
export function updateStoreOrderInfo(data) {
  return request({
    url: '/system/storeOrderInfo',
    method: 'put',
    data: data
  })
}

// 删除订单购物详情
export function delStoreOrderInfo(id) {
  return request({
    url: '/system/storeOrderInfo/' + id,
    method: 'delete'
  })
}
